package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Fee;
import com.antdesignbackend.backend.entity.entityVo.FeeVo;
import com.antdesignbackend.backend.mapper.FeeMapper;
import com.antdesignbackend.backend.service.FeeService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FeeServiceImpl extends ServiceImpl<FeeMapper, Fee> implements FeeService {
    @Autowired
    private FeeMapper feeMapper;
    @Override
    public List<FeeVo> search(QueryWrapper<FeeVo> queryWrapper, Page<FeeVo> page) {
        return feeMapper.search(queryWrapper, page);
    }
    @Override
    public Integer count(QueryWrapper<FeeVo> queryWrapper) {
        return feeMapper.count(queryWrapper);
    }
    @Override
    public List<FeeVo> searchView(QueryWrapper<FeeVo> queryWrapper, Page<FeeVo> page) {
        return feeMapper.searchView(queryWrapper, page);
    }
    @Override
    public Integer countView(QueryWrapper<FeeVo> queryWrapper) {
        return feeMapper.countView(queryWrapper);
    }

}
